﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;

namespace Noria.Web.MyMSDN.Models
{
    [Table("file")]
    internal class File
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long FileId { get; set; }

        public string FileName { get; set; }
        public string Description { get; set; }
        public string Sha1 { get; set; }
        public DateTime PostedDate { get; set; }
        public string Locale { get; set; }
        public string DisplaySize { get; set; }

        public long? Size { get; set; }
        public string eMule { get; set; }

        public bool Enabled { get; set; }
        public long FamilyId { get; set; }

        [JsonIgnore]
        public virtual Family Family { get; set; }
    }
}